package com.woniu.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.exception.userexp.YogaException;
import com.woniu.order.Param.OrderByShoppingCarParam;
import com.woniu.order.Param.OrderPayParam;
import com.woniu.order.Param.PageParam;
import com.woniu.order.dto.GoodsOrderDto;
import com.woniu.order.model.GoodsOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杜岷芫
 * @since 2024年07月12日
 */
public interface GoodsOrderService extends IService<GoodsOrder> {

    Page<GoodsOrder> selsectOrders(PageParam param, int userId)throws YogaException;

    Object pay(OrderPayParam orderPayParam) throws Exception;

    void payNotify(Map<String, String> map) throws Exception;

    Page<GoodsOrder> loadPageGoodsOrder(PageParam param) throws YogaException;

    GoodsOrderDto orderByShoppingCar(OrderByShoppingCarParam param) throws Exception;

    GoodsOrder getOneId(String orderNum);

    void updateByIdGoodsOrder(GoodsOrder yGoodsOrder);
}
